package com.example.swagger.settings;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @description: TODO
 * @author: uu
 * @data: 2023/7/10 下午 03:23
 * @version: v1.0
 */
@Configuration
public class SwaggerConfig {
    @Bean
    public OpenAPI springBootApi(){
        return new OpenAPI().info(new Info()
                .title("盈利宝项目")
                .version("1.0")
                .description("盈利宝前后端分离项目")
                .contact(new Contact().name("cms").email("2946087337@qq.com").url("/swagger-ui.html")));
    }
}
